package com.wisdudu.blank.ui.login;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.wisdudu.blank.R;
import com.wisdudu.blank.databinding.FragmentUserRegisterBinding;
import com.wisdudu.frame.base.BaseFragment;

/**
 * Created by ypp on 2016/8/23.
 */
public class RegisterFragment extends BaseFragment {
    private static final String TAG = "RegisterFragment";
    private RegisterVM mRegisterVM;

    @Override
    protected View initBinding(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        FragmentUserRegisterBinding mBingding = DataBindingUtil.inflate(inflater, R.layout.fragment_user_register, container, false);
        mRegisterVM = new RegisterVM(this, mBingding);
        mBingding.setViewModel(mRegisterVM);
        return mBingding.getRoot();
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        initToolbar(getToolbar(), "注册嘟嘟E家");
    }
}
